package cn.com.yusys.trace.goods;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


@EnableFeignClients
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = { "cn.com.yusys.trace" }, exclude = { DataSourceAutoConfiguration.class,
		HibernateJpaAutoConfiguration.class })
public class YuspGoodsClientApplication extends SpringBootServletInitializer {
	public static void main(String[] args) {

		final Logger log = (Logger) LoggerFactory.getLogger(YuspGoodsClientApplication.class);

		/*
		 * try { // LogBackConfigLoader.load("./logback-spring.xml");
		 * LogBackConfigLoader.load(YuspTraceClientApplication.class.getClassLoader().
		 * getResource("logback-spring.xml").getPath()); } catch (IOException e) { //
		 * TODO Auto-generated catch block e.printStackTrace(); } catch (JoranException
		 * e) { // TODO Auto-generated catch block e.printStackTrace(); }
		 */
		log.info("开始");
		SpringApplication.run(YuspGoodsClientApplication.class, args);
	}

	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(this.getClass());
	}
}
